﻿using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using WebApplicationSample.Customer;

namespace WebApplicationSample.WindsorContainer
{
    public class CustomerInstaller:IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(
                Component.For<ICustomerProvider>().ImplementedBy<CustomerProvider>().LifestylePerWebRequest());
        }
    }
}